package com.ourteam.product.requirement.dao;

/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 CST 2017
 * Auto Generate Date : 2018-05-03 16:45:16
  * Warning ! This file will be overwrite when regenerate !
  *
 */
import org.apache.commons.lang.StringUtils;


public class ProductGlossaryChangLog implements java.io.Serializable {
    private long id;

    /**
     * Attribute id Be Seted Falg
     */
    private boolean idSetted = false;

    /**
    * Attribute id is Null Falg
    */
    private boolean idNull = false;
    private String afterChangeContent;

    /**
     * Attribute afterChangeContent Be Seted Falg
     */
    private boolean afterChangeContentSetted = false;

    /**
    * Attribute afterChangeContent is Null Falg
    */
    private boolean afterChangeContentNull = false;
    private long approverId;

    /**
     * Attribute approverId Be Seted Falg
     */
    private boolean approverIdSetted = false;

    /**
    * Attribute approverId is Null Falg
    */
    private boolean approverIdNull = false;
    private String beforChangeContent;

    /**
     * Attribute beforChangeContent Be Seted Falg
     */
    private boolean beforChangeContentSetted = false;

    /**
    * Attribute beforChangeContent is Null Falg
    */
    private boolean beforChangeContentNull = false;
    private String changeReason;

    /**
     * Attribute changeReason Be Seted Falg
     */
    private boolean changeReasonSetted = false;

    /**
    * Attribute changeReason is Null Falg
    */
    private boolean changeReasonNull = false;
    private long editorId;

    /**
     * Attribute editorId Be Seted Falg
     */
    private boolean editorIdSetted = false;

    /**
    * Attribute editorId is Null Falg
    */
    private boolean editorIdNull = false;
    private java.util.Date editDate;

    /**
     * Attribute editDate Be Seted Falg
     */
    private boolean editDateSetted = false;

    /**
    * Attribute editDate is Null Falg
    */
    private boolean editDateNull = false;
    private long productGlossaryId;

    /**
     * Attribute productGlossaryId Be Seted Falg
     */
    private boolean productGlossaryIdSetted = false;

    /**
    * Attribute productGlossaryId is Null Falg
    */
    private boolean productGlossaryIdNull = false;
    private String remarks;

    /**
     * Attribute remarks Be Seted Falg
     */
    private boolean remarksSetted = false;

    /**
    * Attribute remarks is Null Falg
    */
    private boolean remarksNull = false;
    private String status;

    /**
     * Attribute status Be Seted Falg
     */
    private boolean statusSetted = false;

    /**
    * Attribute status is Null Falg
    */
    private boolean statusNull = false;

    public ProductGlossaryChangLog() {
        super();
    }

    /**
         * Get id
         *
         * @return long
         */
    final public long getId() {
        return id;
    }

    /**
     * Set id
     *
     * @param long
     */
    final public void setId(long id) {
        this.id = id;

        this.idSetted = true;

        this.setIdNull(false);
    }

    /**
     * Get id Has Been Setted
     *
     * @return boolean
     */
    final public boolean isIdSetted() {
        return this.idSetted;
    }

    /**
     * Set id Null
     *
     */
    final public void setIdNull() {
        this.idNull = true;
    }

    final public void setIdNull(boolean aNullFlag) {
        this.idNull = aNullFlag;
    }

    final public boolean isIdNull() {
        return this.idNull;
    }

    /**
         * Get afterChangeContent
         *
         * @return String
         */
    final public String getAfterChangeContent() {
        if (isAfterChangeContentNull()) {
            return null;
        } else {
            return StringUtils.trim(afterChangeContent);
        }
    }

    /**
     * Set afterChangeContent
     *
     * @param String
     */
    final public void setAfterChangeContent(String afterChangeContent) {
        this.afterChangeContent = StringUtils.trim(afterChangeContent);

        this.afterChangeContentSetted = true;

        this.setAfterChangeContentNull(this.afterChangeContent == null);
    }

    /**
     * Get afterChangeContent Has Been Setted
     *
     * @return boolean
     */
    final public boolean isAfterChangeContentSetted() {
        return this.afterChangeContentSetted;
    }

    /**
     * Set afterChangeContent Null
     *
     */
    final public void setAfterChangeContentNull() {
        this.afterChangeContentNull = true;
    }

    final public void setAfterChangeContentNull(boolean aNullFlag) {
        this.afterChangeContentNull = aNullFlag;
    }

    final public boolean isAfterChangeContentNull() {
        return this.afterChangeContentNull;
    }

    /**
         * Get approverId
         *
         * @return long
         */
    final public long getApproverId() {
        return approverId;
    }

    /**
     * Set approverId
     *
     * @param long
     */
    final public void setApproverId(long approverId) {
        this.approverId = approverId;

        this.approverIdSetted = true;

        this.setApproverIdNull(false);
    }

    /**
     * Get approverId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isApproverIdSetted() {
        return this.approverIdSetted;
    }

    /**
     * Set approverId Null
     *
     */
    final public void setApproverIdNull() {
        this.approverIdNull = true;
    }

    final public void setApproverIdNull(boolean aNullFlag) {
        this.approverIdNull = aNullFlag;
    }

    final public boolean isApproverIdNull() {
        return this.approverIdNull;
    }

    /**
         * Get beforChangeContent
         *
         * @return String
         */
    final public String getBeforChangeContent() {
        if (isBeforChangeContentNull()) {
            return null;
        } else {
            return StringUtils.trim(beforChangeContent);
        }
    }

    /**
     * Set beforChangeContent
     *
     * @param String
     */
    final public void setBeforChangeContent(String beforChangeContent) {
        this.beforChangeContent = StringUtils.trim(beforChangeContent);

        this.beforChangeContentSetted = true;

        this.setBeforChangeContentNull(this.beforChangeContent == null);
    }

    /**
     * Get beforChangeContent Has Been Setted
     *
     * @return boolean
     */
    final public boolean isBeforChangeContentSetted() {
        return this.beforChangeContentSetted;
    }

    /**
     * Set beforChangeContent Null
     *
     */
    final public void setBeforChangeContentNull() {
        this.beforChangeContentNull = true;
    }

    final public void setBeforChangeContentNull(boolean aNullFlag) {
        this.beforChangeContentNull = aNullFlag;
    }

    final public boolean isBeforChangeContentNull() {
        return this.beforChangeContentNull;
    }

    /**
         * Get changeReason
         *
         * @return String
         */
    final public String getChangeReason() {
        if (isChangeReasonNull()) {
            return null;
        } else {
            return StringUtils.trim(changeReason);
        }
    }

    /**
     * Set changeReason
     *
     * @param String
     */
    final public void setChangeReason(String changeReason) {
        this.changeReason = StringUtils.trim(changeReason);

        this.changeReasonSetted = true;

        this.setChangeReasonNull(this.changeReason == null);
    }

    /**
     * Get changeReason Has Been Setted
     *
     * @return boolean
     */
    final public boolean isChangeReasonSetted() {
        return this.changeReasonSetted;
    }

    /**
     * Set changeReason Null
     *
     */
    final public void setChangeReasonNull() {
        this.changeReasonNull = true;
    }

    final public void setChangeReasonNull(boolean aNullFlag) {
        this.changeReasonNull = aNullFlag;
    }

    final public boolean isChangeReasonNull() {
        return this.changeReasonNull;
    }

    /**
         * Get editorId
         *
         * @return long
         */
    final public long getEditorId() {
        return editorId;
    }

    /**
     * Set editorId
     *
     * @param long
     */
    final public void setEditorId(long editorId) {
        this.editorId = editorId;

        this.editorIdSetted = true;

        this.setEditorIdNull(false);
    }

    /**
     * Get editorId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isEditorIdSetted() {
        return this.editorIdSetted;
    }

    /**
     * Set editorId Null
     *
     */
    final public void setEditorIdNull() {
        this.editorIdNull = true;
    }

    final public void setEditorIdNull(boolean aNullFlag) {
        this.editorIdNull = aNullFlag;
    }

    final public boolean isEditorIdNull() {
        return this.editorIdNull;
    }

    /**
         * Get editDate
         *
         * @return java.util.Date
         */
    final public java.util.Date getEditDate() {
        return editDate;
    }

    /**
     * Set editDate
     *
     * @param java.util.Date
     */
    final public void setEditDate(java.util.Date editDate) {
        this.editDate = editDate;

        this.editDateSetted = true;

        this.setEditDateNull(this.editDate == null);
    }

    /**
     * Get editDate Has Been Setted
     *
     * @return boolean
     */
    final public boolean isEditDateSetted() {
        return this.editDateSetted;
    }

    /**
     * Set editDate Null
     *
     */
    final public void setEditDateNull() {
        this.editDateNull = true;
    }

    final public void setEditDateNull(boolean aNullFlag) {
        this.editDateNull = aNullFlag;
    }

    final public boolean isEditDateNull() {
        return this.editDateNull;
    }

    /**
         * Get productGlossaryId
         *
         * @return long
         */
    final public long getProductGlossaryId() {
        return productGlossaryId;
    }

    /**
     * Set productGlossaryId
     *
     * @param long
     */
    final public void setProductGlossaryId(long productGlossaryId) {
        this.productGlossaryId = productGlossaryId;

        this.productGlossaryIdSetted = true;

        this.setProductGlossaryIdNull(false);
    }

    /**
     * Get productGlossaryId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isProductGlossaryIdSetted() {
        return this.productGlossaryIdSetted;
    }

    /**
     * Set productGlossaryId Null
     *
     */
    final public void setProductGlossaryIdNull() {
        this.productGlossaryIdNull = true;
    }

    final public void setProductGlossaryIdNull(boolean aNullFlag) {
        this.productGlossaryIdNull = aNullFlag;
    }

    final public boolean isProductGlossaryIdNull() {
        return this.productGlossaryIdNull;
    }

    /**
         * Get remarks
         *
         * @return String
         */
    final public String getRemarks() {
        if (isRemarksNull()) {
            return null;
        } else {
            return StringUtils.trim(remarks);
        }
    }

    /**
     * Set remarks
     *
     * @param String
     */
    final public void setRemarks(String remarks) {
        this.remarks = StringUtils.trim(remarks);

        this.remarksSetted = true;

        this.setRemarksNull(this.remarks == null);
    }

    /**
     * Get remarks Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRemarksSetted() {
        return this.remarksSetted;
    }

    /**
     * Set remarks Null
     *
     */
    final public void setRemarksNull() {
        this.remarksNull = true;
    }

    final public void setRemarksNull(boolean aNullFlag) {
        this.remarksNull = aNullFlag;
    }

    final public boolean isRemarksNull() {
        return this.remarksNull;
    }

    /**
         * Get status
         *
         * @return String
         */
    final public String getStatus() {
        if (isStatusNull()) {
            return null;
        } else {
            return StringUtils.trim(status);
        }
    }

    /**
     * Set status
     *
     * @param String
     */
    final public void setStatus(String status) {
        this.status = StringUtils.trim(status);

        this.statusSetted = true;

        this.setStatusNull(this.status == null);
    }

    /**
     * Get status Has Been Setted
     *
     * @return boolean
     */
    final public boolean isStatusSetted() {
        return this.statusSetted;
    }

    /**
     * Set status Null
     *
     */
    final public void setStatusNull() {
        this.statusNull = true;
    }

    final public void setStatusNull(boolean aNullFlag) {
        this.statusNull = aNullFlag;
    }

    final public boolean isStatusNull() {
        return this.statusNull;
    }

    public int hashCode() {
        final int prime = 31;
        int result = 1;

        result = (prime * result) + (int) (getId() ^ (getId() >>> 32));

        return result;
    }

    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }

        if ((obj instanceof ProductGlossaryChangLog) == false) {
            return false;
        }

        ProductGlossaryChangLog other = (ProductGlossaryChangLog) obj;

        if (getId() != other.getId()) {
            return false;
        }

        return true;
    }

    public String toString() {
        StringBuffer buffer = new StringBuffer();

        buffer.append("[");

        buffer.append("id=");
        buffer.append(this.id);

        buffer.append("afterChangeContent=");
        buffer.append(this.afterChangeContent);

        buffer.append("approverId=");
        buffer.append(this.approverId);

        buffer.append("beforChangeContent=");
        buffer.append(this.beforChangeContent);

        buffer.append("changeReason=");
        buffer.append(this.changeReason);

        buffer.append("editorId=");
        buffer.append(this.editorId);

        buffer.append("editDate=");
        buffer.append(this.editDate);

        buffer.append("productGlossaryId=");
        buffer.append(this.productGlossaryId);

        buffer.append("remarks=");
        buffer.append(this.remarks);

        buffer.append("status=");
        buffer.append(this.status);

        buffer.append("]");

        return buffer.toString();
    }
}
